package com.yingxin.yxerp.module.organization.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yingxin.yxerp.module.organization.entity.DepartmentMgr;
import com.yingxin.yxerp.module.organization.vo.req.DepartmentMgrQueryVo;
import com.yingxin.yxerp.module.organization.vo.resp.DepartmentMgrRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门负责人 Mapper 接口
 * @author fanchao
 * @since 2021-11-16
 */

public interface DepartmentMgrMapper extends BaseMapper<DepartmentMgr> {

    /**
     * 分页查询
     */
    IPage<DepartmentMgrRespVo> pageVo(Page page, @Param("queryObj") DepartmentMgrQueryVo queryVo);

    /**
     * 查询全部
     */
    List<DepartmentMgrRespVo> listVo(@Param("queryObj") DepartmentMgrQueryVo queryVo);

    /**
     * 根据id查询
     */
    DepartmentMgrRespVo getVo(@Param("id") String id);

}
